package com.infore.airsupervise.biz;

import com.infore.airsupervise.bean.PolluterE;
import com.infore.airsupervise.http.BaseResponse;
import com.infore.airsupervise.http.OnServerResponseListener;

import java.util.List;

import retrofit2.Call;

/**
 * 污染源业务接口
 * <p>
 * 作者: dingxinlin
 * 创建日期: 2017/4/12 15:41
 */

public interface PolluterBiz {

    /**
     * 搜索污染源
     * @param type
     * @param keyword
     * @param listener
     * @return
     */
    Call<BaseResponse> searchPolluter(
            int type, String keyword,
            OnServerResponseListener<List<PolluterE>> listener);

    /**
     * 获取污染源详情
     * @param mnCode
     * @param listener
     * @return
     */
    Call<BaseResponse> getPolluterDetail(
            String mnCode,
            OnServerResponseListener<PolluterE> listener);

    /**
     * 获取污染源列表
     */
    Call<BaseResponse>getPolluterList(OnServerResponseListener<List<PolluterE>> listener);
}
